package cn.wenhe9.hefengweather.logic.network

import cn.wenhe9.hefengweather.logic.model.DailyResponse
import cn.wenhe9.hefengweather.logic.model.LifeIndexResponse
import cn.wenhe9.hefengweather.logic.model.RealtimeResponse
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

/**
 *@author DuJinliang
 *2021/10/1
 */
interface WeatherService {
    @GET("realtimeWeatherInfo/{locationId}")
    fun getRealtimeWeather(@Path("locationId")locationId : String) : Call<RealtimeResponse>

    @GET("dailyWeatherInfo/{locationId}")
    fun getDailyWeather(@Path("locationId") locationId : String) : Call<DailyResponse>

    @GET("lifeIndexInfo/{locationId}")
    fun getLifeIndex(@Path("locationId") locationId : String) : Call<LifeIndexResponse>
}